-
Notifications
You must be signed in to change notification settings - Fork 1.1k
PYTHON-3186 Avoid SDAM heartbeat timeouts on AWS Lambda #912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Poll monitor socket with timeout=0 one last time after timeout expires.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Oof, the test fails on macOS in a similar way to Windows. I'm going to try and rewrite the test to use subprocess.Popen instead of multiprocessing. |
Updated the test to use Popen which should hopefully work across all platforms. Without the changes to network.py this test fails, like this:
|
Tests should finally be passing now, besides the link checker which just started failing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Poll monitor socket with timeout=0 one last time after timeout expires. This avoids heartbeat timeouts and connection churn on Lambda and other FaaS envs.
Poll monitor socket with timeout=0 one last time after timeout expires.
https://jira.mongodb.org/browse/PYTHON-3186